<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%--引用标签--%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<%@ include file="/WEB-INF/include/head.basic.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录</title>
<script type="text/javascript">
	$(function(){
		loginBean.init();
		if('${message}'!=null && '${message}'!=''){
			 $('#tipInfos').html('${message}');
		}
	});
	//表单提交
	function forSave() {
		$("#saveBtn").linkbutton("disable");
		$("#saveForm").submit();
	}
</script>
</head>
<body style="position:absolute;left:40%;top:40%;margin:-100px 0 0 -150px">
<form:form action="./userLogin"  id="saveForm">
	<div id="panel">
		<table align="center" cellpadding="10px" style="border-spacing: 0; width: 300px">
			<tr><td colspan="2"></td></tr>
			<tr>
				<td align="right"><strong>用户名：</strong></td>
				<td><input name="username" id="username" class="easyui-textbox" style="width:170px"/></td>
			</tr>
			<tr>
				<td align="right"><strong>密码：</strong></td>
				<td><input type="password" name="password" id="password" class="easyui-textbox" style="width:170px"/></td>
			</tr>
		</table>
	</div>
	<div id="foot" style="padding:5px;text-align:center ; ">
		<a href="###" id="saveBtn" class="easyui-linkbutton"  onclick="forSave();" >登录</a>&nbsp;&nbsp;&nbsp;
		<a href="###" id="saveBtn" class="easyui-linkbutton"  onclick="javascript:return location='./register'" >注册>></a>
		&nbsp;&nbsp;&nbsp;&nbsp;<span id="tipInfos"></span>
	</div>
</form:form>
</body>
<script type="application/javascript">
	var loginBean={
		options : {
			title : "用户登录",
			fit : false,
			iconCls:null,
			footer : "#foot",
			headerCls : "titleCss",
			width:"400",
			height:"200"
		},
		init:function(){
			$("#panel").panel(this.options);//设置Panel信息
		}
	};
</script>
</html>